package com.bsoft.repository;

import com.bsoft.pojo.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface UserRepository02 extends MongoRepository<User, Integer> {

    User findByUsername(String username);

    Page<User> findByUsernameLike(String username, Pageable pageable);

}
